<template>
  <div>
        <div class="layui-layout layui-layout-admin">
        <!-- 1.头部区域模块 -->
        <div class="layui-header">
            <div class="layui-logo  layui-hide-xs">
                <img src="@/assets/logo.png" alt="">
            </div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <!-- 头部导航栏的头像区域 -->
                    <a href="javascript:;" class="userinfo">
                        <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                        <span class="text-avatar">A</span> 个人中心
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/user/user_info.html" target="fm">基本资料</a></dd>
                        <dd><a href="/user/user_avatar.html" target="fm">更换头像</a></dd>
                        <dd><a href="/user/user_pwd.html" target="fm">重置密码</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;" id="btnLogout">
                        <span class="iconfont icon-tuichu"></span> 
                        <!-- 点击退出回到登录页面 -->
                        <router-link to="/login">退出</router-link>
                    </a>
                </li>
            </ul>
        </div>
        <!-- 2.侧边栏内容模块 -->
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航栏的头像区域 -->
                <div class="userinfo">
                   <img src="http://t.cn/RCzsdCq" class="layui-nav-img" />
                    <span id="welcome">欢迎 ***</span>
                </div>
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test" lay-shrink="all">
                    <li class="layui-nav-item layui-this">
                        <a  target="fm"><span class="iconfont icon-home"></span>首页</a>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;"> <span class="iconfont icon-16"></span>文章管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/article/art_cate.html" target="fm"><i class="layui-icon layui-icon-app"></i>文章类别</a></dd>
                            <dd><a href="/article/art_list.html" target="fm"><i class="layui-icon layui-icon-app"></i>文章列表</a></dd>
                            <dd><a href="/article/art_pub.html" target="fm"><i class="layui-icon layui-icon-app"></i>发表文章</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"> <span class="iconfont icon-user"></span>个人中心</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/user/user_info.html" target="fm"><i class="layui-icon layui-icon-app"></i>基本资料</a></dd>
                            <dd><a href="user/user_avatar.html" target="fm"><i class="layui-icon layui-icon-app"></i>更换头像</a></dd>
                            <dd><a href="/user/user_pwd.html" target="fm"><i class="layui-icon layui-icon-app"></i>重置密码</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <!-- 3.内容主体区域 -->
        <div class="layui-body">
            <!-- <iframe name="fm" src="/home/dashboard.html" frameborder="0"></iframe> -->
            <router-view></router-view>
        </div>
        <!-- 4.底部区域 -->
        <div class="layui-footer" style="height:30px">
            大事件项目
        </div>
    </div>
  </div>
</template>

<script>
// import '@/layui/src/layui.js'

export default {

}
</script>

<style scoped>
.layui-footer{
  text-align: center;
  line-height: 30px;
}
.layui-nav-img{
 
  margin-left: 30px;
}
.userinfo{
  height: 45px;
  line-height: 45px;
}
</style>